package com.example.demo.mapper;

import org.apache.ibatis.annotations.Param;

import com.example.demo.pojo.Order;
import com.example.demo.pojo.OrderUser;

public interface OrderMapper {
    OrderUser queryOrderUserByOrderNumber(@Param("number") String number);
    /**
     * 根据订单号查询订单用户的信息
     * @param number
     * @return
     */
    Order queryOrderWithUserByOrderNumber1(@Param("number") String number);
    
    /**
     * 根据订单号查询订单用户的信息及订单详情
     * @param number
     * @return
     */
    Order queryOrderWithUserAndDetailByOrderNumber(@Param("number") String number);
     
    /**
     * 根据订单号查询订单用户的信息及订单详情及订单详情对应的商品信息
     * @param number
     * @return
     */
    Order queryOrderWithUserAndDetailItemByOrderNumber(@Param("number") String number);
    
	Order queryQueryOrderAndUserByOrderNumberLazy(@Param("number") String number);

}
